<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 首页
Route::get('/', 'index/index/index');
// 栏目列表
Route::get('column/:id', 'index/news/index');
// 预览文章
Route::get('news/preview/:id', 'index/news/preview');
// 文章详情
Route::get('news/:id', 'index/news/show');
// Tag标签文章列表
Route::get('tag/:id', 'index/tag/index');

Route::get('search', 'index/search/index');

Route::get('login/auth/:redirectToProvider', 'index/Oauth/loginAuth');            // 第三方授权登录
Route::get('login/authCallback/:provider', 'index/Oauth/authProviderCallback');   // 第三方授权回调地址
Route::get('auth/logout', 'index/Oauth/logoutAuth');                              // 退出
